package org.xs.web.util;

import java.util.ArrayList;
import java.util.List;

public class SortItem<T> {
	private T obj;
	private List<SortItem> around = new ArrayList<SortItem>();
	private List<SortItem> within = new ArrayList<SortItem>();
	
	public SortItem(T obj){
		this.obj = obj;
	}
	public T getObj(){
		return obj;
	}
	public void addAround(SortItem item){
		if(item != null){
			around.add(item);
		}
	}
	public void addWithin(SortItem item){
		if(item != null){
			within.add(item);
		}
	}
	public List<SortItem> getAround(){
		return around;
	}
	public List<SortItem> getWithin(){
		return within;
	}
}
